package com.medusa.aps.business.modules.demand.model.input;

import com.medusa.aps.business.model.enums.ProductionType;
import com.medusa.aps.business.model.pagination.BasePage;
import com.medusa.aps.business.common.web.valid.group.Create;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author miskw
 * @date 2024/1/6
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "排程明细接收参数实体")
public class ControlDetailParam extends BasePage {
    @NotNull(message = "订单号不能为空")
    @Schema(description = "订单号", requiredMode = Schema.RequiredMode.REQUIRED)
    private String orderNumber;
    @Schema(description = "物料编码")
    private String materialCode;
    @Schema(description = "物料名称")
    private String materialName;
    @Schema(description = "生产类型")
    @NotNull(groups = Create.class, message = "生产类型不能为空")
    private ProductionType productionType;

}
